home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / AOCE / Development Tools / Sample Code / Messaging Service Access Module / Internet PMSAM / Internet PMSAM source / network.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-19  |  949 b   |  27 lines  |  [TEXT/MPS ]

  1. /*----------------------------------------------------------
  2.  
  3. AOCE Post Office Protocol (3)
  4. Personal Gateway
  5.  
  6. written by Steven Falkenburg-- MacDTS
  7. ©1991 Apple Computer, Inc.
  8.  
  9. ----------------------------------------------------------*/
  10.  
  11. #pragma once
  12. #define __GW_NETWORK__
  13.  
  14. OSErr InitRemoteNetStuff(void);
  15. OSErr CloseRemoteNetStuff(void);
  16.  
  17. OSErr TCP_CreateStream(unsigned long *connID);
  18. OSErr TCP_ReleaseStream(unsigned long connID);
  19. OSErr TCP_CloseConnection(unsigned long connID,char timeout);
  20. OSErr TCP_ActiveOpen(unsigned long connID,unsigned long ipAddress,unsigned short ipPort,char timeout);
  21. OSErr TCP_Send(unsigned long connID,char *sendData,unsigned short sendLength,Boolean push,char timeout);
  22. OSErr TCP_Receive(unsigned long connID,Ptr buffer,unsigned short *bufLen,char timeout);
  23. OSErr TCP_GetMyIPAddress(unsigned long *ipAddress);
  24.  
  25. OSErr TCP_ReadByte(unsigned long connID,unsigned char *byte,char timeout);
  26. OSErr TCP_FlushBytes(void);
  27.